Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): Fix shipping price when the promotion is not applicable anymo #1150

Merged
merged 2 commits into from
Oct 19, 2021
Merged

fix(core): Fix shipping price when the promotion is not applicable anymo #1150

merged 2 commits into from
Oct 19, 2021

Conversation

huseyinalp
Copy link
Contributor

Fix the following issue;
assume that we have a shipping promotion, and it gives free delivery after 30 USD.

The customer added some items to the cart and reached the threshold of free delivery. Shipping price is free as expected.
Then he removed one item from the cart and if cart total is lower than threshold of free delivery, the shipping price should be calculated again.

So we should removed previously added adjustments from shipping line items if there isn't applicable promotion for shipping.

@michaelbromley michaelbromley merged commit eb1dcc4 into vendure-ecommerce:master Oct 19, 2021
@michaelbromley
Copy link
Member

Wow great catch, thank you!

michaelbromley added a commit that referenced this pull request Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants